package cn.leshua.req;

/**
 * @author eden
 * @date 2018/5/21 下午3:36
 * @desc
 */
public class LeshuaScanCodePayReq extends LeshuaBaseReq {
	
	/** 支付类型 **/
	public String pay_way;
	
	/** 订单金额，以分为单位 **/
	public String amount;
	
	/** 是否公众号支付，0-非公众号支付，1-公众号支付 **/
	public String jspay_flag;
	
	/** 用户子标识 **/
	public String sub_openid;
	
	/** 通知地址 **/
	public String notify_url;

	/*公众号支付跳 转地址*/
	public String jump_url;
	
	/** 下单IP地址 **/
	public String client_ip;
	
	/** T0标识，1：T0，不传或传0为T1 **/
	public String t0;
	
	/** 商品描述 **/
	public String body;

	public String appid;

	public String getAppid() {
		return appid;
	}

	public void setAppid(String appid) {
		this.appid = appid;
	}

	public LeshuaScanCodePayReq(String merchant_id, String third_order_id, String pay_way, String amount, String jspay_flag) {
		setService("get_tdcode");
		setMerchant_id(merchant_id);
		setThird_order_id(third_order_id);
		setPay_way(pay_way);
		setAmount(amount);
		setJspay_flag(jspay_flag);
	}
	
	public String getPay_way() {
		return pay_way;
	}

	public void setPay_way(String pay_way) {
		this.pay_way = pay_way;
	}

	public String getAmount() {
		return amount;
	}

	public void setAmount(String amount) {
		this.amount = amount;
	}

	public String getJspay_flag() {
		return jspay_flag;
	}

	public void setJspay_flag(String jspay_flag) {
		this.jspay_flag = jspay_flag;
	}

	public String getSub_openid() {
		return sub_openid;
	}

	public void setSub_openid(String sub_openid) {
		this.sub_openid = sub_openid;
	}

	public String getNotify_url() {
		return notify_url;
	}

	public void setNotify_url(String notify_url) {
		this.notify_url = notify_url;
	}

	public String getClient_ip() {
		return client_ip;
	}

	public void setClient_ip(String client_ip) {
		this.client_ip = client_ip;
	}

	public String getT0() {
		return t0;
	}

	public void setT0(String t0) {
		this.t0 = t0;
	}

	public String getBody() {
		return body;
	}

	public String getJump_url() {
		return jump_url;
	}

	public void setJump_url(String jump_url) {
		this.jump_url = jump_url;
	}

	public void setBody(String body) {
		this.body = body;
	}

	@Override
	public String toString() {
		StringBuilder builder = new StringBuilder();
		builder.append("LeshuaScanCodePayReq [pay_way=").append(pay_way).append(", amount=").append(amount).append(", jspay_flag=")
				.append(jspay_flag).append(", sub_openid=").append(sub_openid).append(", notify_url=").append(notify_url)
				.append(", client_ip=").append(client_ip).append(", t0=").append(t0).append(", body=").append(body).append(", service=")
				.append(service).append(", merchant_id=").append(merchant_id).append(", third_order_id=").append(third_order_id)
				.append(", nonce_str=").append(nonce_str).append(",jump_url=").append(jump_url).append(", sign=").append(sign).append("]");
		return builder.toString();
	}

}
